#####Hungary Major Events######
#By Joakim 'Greven' Bergqwist #
#   Hvard Moe                #
#   Tom 'Demetrios' Rinschler #
###############################

#Religious Rebellion#
event = {

	id = 3641
	random = no
	country = HUN
	name = "EVENTNAME3641"
	desc = "EVENTHIST3641"
	style = 3

	date = { day = 1 month = january year = 1604 }
	offset = 30
	deathdate = { day = 1 month = january year = 1605 }

	action_a ={				#Fight for the cause of the Reformed Faith#
		name = "ACTIONNAME3641A"
		command = { type = revoltrisk which = 36 value = 6 }
		command = { type = religion which = reformed }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = SWE value = 100 }
		command = { type = relation which = LIT value = 100 }
		command = { type = relation which = PRU value = 100 }
		command = { type = relation which = DAN value = 100 }
		command = { type = relation which = HOL value = 100 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = stability value = -2 }
	}

	action_b ={				#Fight for the cause of the Catholic Faith#
		name = "ACTIONNAME3641B"
		command = { type = revoltrisk which = 36 value = 6 }
		command = { type = religion which = counterreform }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = SWE value = -100 }
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = PRU value = -100 }
		command = { type = relation which = DAN value = -100 }
		command = { type = relation which = HOL value = -100 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = stability value = -2 }
	}
}

# The Council of Florence and the Union of the Churches
event = { 
	id = 3835
	
	# Triggered by BYZ 3833
	
	random = no
	country = HUN
	name = "EVENTNAME3835"
	desc = "EVENTHIST3835"
	style = 1 
	
	action_a ={ #Gain CB on Ottomans#
		name = "ACTIONNAME3835A"
		command = { type = casusbelli which = TUR value = 60 }
	}
}

# The Death of King Vaclav IV
event = {
	id = 3851		# Triggered from BOH3801
	random = no
	country = HUN
	name = "EVENTNAME3851"
	desc = "EVENTHIST3851"
	style = 1

	action_a ={ # They reject!
		name = "ACTIONNAME3851A"
		command = { type = casusbelli which = BOH value = 215 }
	}
}




#The Death of King Lajos of Hungary#
event = {

	id = 3639		#Previous 1526 Hungarian (Siebenburgen exists) event#
	trigger = {
			exists = HAB
		    	control = { province = 353 data = TUR }#Pest
		    	control = { province = 325 data = TUR }#Magyar
		    	control = { province = 324 data = TUR }#Maros
		    	owned = { province = 353 data = -1 }
		    	owned = { province = 325 data = -1 }
		    	owned = { province = 324 data = -1 }
		}
	random = no
	country = HUN
	name = "EVENTNAME3639"
	desc = "EVENTHIST3184"	#changed the description, more suitable imo :)#
	style = 2

	date = { day = 13 month = march year = 1516 }	#earlier startdate-they year Lajos took the throne#
	offset = 0
	deathdate = { day = 21 month = july year = 1540 }	#The death of Janos I Zapolya# 

	action_a ={				#Elect Ferdinand Habsburg of Austria#
		name = "ACTIONNAME3639B"
		command = { type = sleepmonarch which = 06267 }#no effect, but i will leave it here.
		command = { type = sleepmonarch which = 06284 }
		command = { type = sleepmonarch which = 06285 }
		command = { type = sleepmonarch which = 06286 }
		command = { type = sleepmonarch which = 06287 }
		command = { type = sleepmonarch which = 06288 }
		command = { type = sleepmonarch which = 06289 }
		command = { type = sleepmonarch which = 06290 }
		command = { type = sleepmonarch which = 06291 }
		command = { type = sleepmonarch which = 06292 }
		command = { type = sleepmonarch which = 06293 }
		command = { type = sleepmonarch which = 06294 }
		command = { type = sleepmonarch which = 06295 }
		command = { type = sleepmonarch which = 06296 }
		command = { type = sleepmonarch which = 06297 }
		command = { type = sleepmonarch which = 06298 }
		command = { type = wakemonarch which = 06268 }
		command = { type = wakemonarch which = 06269 }
		command = { type = wakemonarch which = 06270 }
		command = { type = wakemonarch which = 06271 }
		command = { type = wakemonarch which = 06272 }
		command = { type = wakemonarch which = 06273 }
		command = { type = wakemonarch which = 06274 }
		command = { type = wakemonarch which = 06275 }
		command = { type = wakemonarch which = 06276 }
		command = { type = wakemonarch which = 06277 }
		command = { type = wakemonarch which = 06278 }
		command = { type = wakemonarch which = 06279 }
		command = { type = wakemonarch which = 06280 }
		command = { type = trigger which = 3645 }		#TUR#
		command = { type = trigger which = 3185 }		#HAB#
		command = { type = secedeprovince which = HAB value = 316 }	#Hungarian provinces. Now, where should Magyar go i am not sure#
		command = { type = secedeprovince which = HAB value = 326 }
		command = { type = secedeprovince which = HAB value = 352 }
		command = { type = secedeprovince which = HAB value = 367 }	#plus few provinces possibly conquered by Hungary , outside Ottoman reach#
		command = { type = secedeprovince which = HAB value = 368 }	#Istria#
		command = { type = secedeprovince which = HAB value = 315 }	#Bohemia#
		command = { type = secedeprovince which = HAB value = 314 }
		command = { type = secedeprovince which = HAB value = 329 }
		command = { type = secedeprovince which = HAB value = 330 }
		command = { type = secedeprovince which = HAB value = 328 }
		command = { type = secedeprovince which = HAB value = 330 }
		command = { type = secedeprovince which = HAB value = 369 }	#Steimark#
		command = { type = secedeprovince which = HAB value = 327 }	#Ostmarch#
		command = { type = secedeprovince which = HAB value = 350 }	#Salzburg#
		command = { type = secedeprovince which = TUR value = 323 }	#Transylvania#
		command = { type = secedeprovince which = TUR value = 317 } #Ruthenia#
	}

	action_b ={				#Elect Johan Zapolya of Siebenbrgen#
		name = "ACTIONNAME3639A"	#This is Die-Hard independence option.#
		command = { type = stability value = -3 }
		command = { type = relation which = HAB value = -200 }
		command = { type = desertion which = -1 value = 15000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
	}
}

#The Habsburg Inheritance of Hungary#	#Habsburg#
event = {

	id = 3185			#Triggered by HUN3639#
	random = no
	country = HAB
	name = "EVENTNAME3185"
	desc = "EVENTHIST3185"
	style = 2

	action_a ={				#I will be crowned King of Hungary#
		name = "ACTIONNAME3185A"
		command = { type = stability value = 3 }
		command = { type = domestic which = CENTRALIZATION value = -3 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = addcore which = 326 }
		command = { type = addcore which = 352 }
		command = { type = addcore which = 367 }
		command = { type = addcore which = 316 }
		command = { type = addcore which = 353 }
		command = { type = addcore which = 317 }
		command = { type = addcore which = 325 }
		command = { type = addcore which = 354 }
		command = { type = addcore which = 323 }
		command = { type = addcore which = 324 }
		command = { type = addcore which = 366 }
		command = { type = addcore which = 355 }	#Perhaps add war command with Ottomans?#
	}
}

#The Habsburg Inheritance of Hungary#		#TUR#
event = {

	id = 3645				#Triggered by HUN3639#
	random = no
	country = TUR
	name = "EVENTNAME3185"
	desc = "EVENTHIST3639"
	style = 2

	action_a ={				#Magnificient!#
		name = "ACTIONNAME3184A"	#gotta love those vague action names ;)#
		command = { type = inherit which = HUN }
		command = { type = stability value = 3 }	#well, random goodie command#
	      command = { type = independence which = SIE }
		command = { type = trigger which = 3644 }
	}
}

#The Death of King Lajos of Hungary#		#TUR#
event = {

	id = 3644			
	random = no
	country = TUR
	name = "EVENTNAME3639"
	desc = "EVENTHIST3639"
	style = 2

	action_a ={				#Ok#
		name = "ACTIONNAME3744A"
		command = { type = secedeprovince which = SIE value = 317 }	#Ruthenia. I am not sure what to do with Maros#
		command = { type = trigger which = 3640 }
	}
}

#The Habsburg Inheritance of Hungary#	#Only Heir#
event = {

	id = 3184
	trigger = {
				exists = HUN
		NOT = {
			event  = 3639
			}
		}
	random = no
	country = HAB
	name = "EVENTNAME3098"
	desc = "EVENTHIST3098"
	style = 2

	date = { day = 22 month = july year = 1540 }
	offset = 0
	deathdate = { day = 23 month = july year = 1540 }

	action_a ={				#I will be crowned King of Hungary#
		name = "ACTIONNAME3185A"
		command = { type = inherit which = HUN }
		command = { type = stability value = 3 }
		command = { type = domestic which = CENTRALIZATION value = -3 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = addcore which = 326 }
		command = { type = addcore which = 352 }
		command = { type = addcore which = 367 }
		command = { type = addcore which = 316 }
		command = { type = addcore which = 353 }
		command = { type = addcore which = 317 }
		command = { type = addcore which = 325 }
		command = { type = addcore which = 354 }
		command = { type = addcore which = 323 }
		command = { type = addcore which = 324 }
		command = { type = addcore which = 366 }
		command = { type = addcore which = 355 }
	}
}

#The Death of King Lajos of Hungary#		#SIE#
event = {
	id = 3640
	random = no
	country = SIE
	name = "EVENTNAME3639"
	desc = "EVENTHIST3639"
	style = 2
	action_a = { 			#Ok#
		name = "ACTIONNAME3744A"
		command = { type = addcore which = 317 }
	}
}